// components/navbar/navbar.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    fragment: {
      type: Number,
      value: 0
    }
  },
  data: {},
  methods: {
    gotoFragment: function (e) {
      this.triggerEvent('pagechange', {
        page: e.currentTarget.dataset.fragment
      });
    }
  }
})
